"use strict";
const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  publicPath: "./",
  outputDir: "./html",
  assetsDir: "static",
  runtimeCompiler: true,
  lintOnSave: false,
  productionSourceMap: false,
  devServer: {
    host: "0.0.0.0",
    port: "8080",
    open: true,
    client: {
      overlay: false,
    },
    proxy: {
      [`${process.env.VUE_APP_BASE_API}/`]: {
        // target: `https://hxc.ctvig.com`,
        // target: `http://10.19.0.49:8088`,
        target: `http://172.16.0.50:18686/`,
        // target: `http://172.16.0.70:8088`,
        changeOrigin: true,
        pathRewrite: {
          [`^${process.env.VUE_APP_BASE_API}/`]: "",
        },
      },
    },
  },
});
